﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<head>
</head>
<body>
	<!-- 引用头部样式 -->
	<jsp:include page="header.jsp"></jsp:include>
	
	<!-- 轮播图 -->
	<div class="am-slider am-slider-default"
		data-am-flexslider="{playAfterPaused: 8000}">
		<ul class="am-slides">
			<c:forEach items="${ banList }" var="obj">
				<li><img src="${obj.url }" alt="${obj.title }"></li>
			</c:forEach>
		</ul>
	</div>
	<!-- 轮播图end -->
	
	<!-- 新闻列表 -->
	<div>
		<header class="header-article-list">
			<div class="article-position">新闻资讯</div>
			<ul>
				<li><a href="NewsServlet?method=toArticleListHangYe">行业新闻</a></li>
				<li><a href="NewsServlet?method=toArticleListJiaJu">家居百科</a></li>
				<li><a href="NewsServlet?method=toArticleListGongSi">公司新闻</a></li>
			</ul>
			<div class="article-more-btn">
				<a href="NewsServlet?method=toArticleListMore">MORE &#62; &#62;</a>
			</div>
		</header>

		<section class="article-content">
			<ul>
				<c:forEach items="${newsList }" var="obj">
					<li>
						<div class="article-date">
							<p></p>
						</div>
						<div class="article-info">
							<a href="NewsServlet?method=toArticleListContent&id=${obj.NewsId }">
								<h3>${obj.title }</h3>
								<p>${obj.content }</p>
							</a>
						</div>
					</li>
				</c:forEach>

			</ul>

		</section>
	</div>
	<!-- 新闻列表end -->
	
	<!-- 引用底部样式 -->
	<jsp:include page="footer.jsp"></jsp:include>
	﻿

</body>
</html>